#include <stdio.h>
int m=0;
int p=0;
int pila[1000];
int mem[1000];
int t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16,t17,t18,t19,    t20,t21,t22,t23,t24,t25,t26,t27,t28,t29,t30,t31,t32,t33,t34,t35,t36,
t37,t38,t39,t40,t41,t42,t43,t44,t45,t46,t47,t48,t49,t50,t51,t52,t53,
t54,t55,t56,t57,t58,t59,t60,t61,t62,t63,t64,t65,t66,t67,t68,t69,t70,
t71,t72,t73,t74,t75,t76,t77,t78,t79,t80,
t81,t82, t83, t84, t85, t86, t87, t88, t89, t90, t91, t92, t93, t94, t95, t96, t97, t98, t99, t100, t101, t102, t103, t104, t105, t106, t107, t108, t109, t110, t111, t112, t113, t114, t115, t116, t117, t118, t119, t120, t121, t122, t123, t124, t125, t126, t127, t128, t129, t130, t131, t132, t133, t134, t135, t136, t137, t138, t139, t140, t141, t142, t143, t144, t145, t146, t147, t148, t149, t150;
int t__0;
void Nodo_init_int(){
	t1=p+0;
	t2=pila[t1];
	t3=t2+0;
	t4=p+1;
	t5=pila[t4];
	mem[t3]=t5;
	t6=p+0;
	t7=pila[t6];
	t8=t7+1;
	mem[t8]=-1;
Lfin:t__0=0;
}
void Nodo_getEnlace(){
	t9=p+1;
	t10=p+0;
	t11=pila[t10];
	t12=t11+1;
	t13=mem[t12];
	pila[t9]=t13;
	goto Lfin;
Lfin:t__0=0;
}
void Lista_init(){
	t14=p+0;
	t15=pila[t14];
	t16=t15+0;
	mem[t16]=-1;
Lfin:t__0=0;
}
void Lista_vacio(){
	t17=p+1;
	t18=p+0;
	t19=pila[t18];
	t20=t19+0;
	t21=mem[t20];
	if(t21==-1)goto L1;
	goto L2;
L1:
	pila[t17]=1;
	goto L3;
L2:
	pila[t17]=0;
L3:goto Lfin;
Lfin:t__0=0;
}
void Lista_addNodo_int(){
	t22=p+2;
	t23=m;
	m=m+2;
	pila[t22]=t23;
	t24=p+1;
	t25=pila[t24];
	p=p+3;
	t26=p+0;
	pila[t26]=t23;
	t27=p+1;
	pila[t27]=t25;
	Nodo_init_int();
	p=p-3;
	t28=p+0;
	t29=pila[t28];
	p=p+3;
	t30=p+0;
	pila[t30]=t29;
	Lista_vacio();
	t31=p+1;
	t32=pila[t31];
	p=p-3;
	if(t32==1)goto L2;
	goto L1;
L1:
	t33=p+2;
	t34=pila[t33];
	t35=t34+1;
	t36=p+0;
	t37=pila[t36];
	t38=t37+0;
	t39=mem[t38];
	mem[t35]=t39;
L2:
	t40=p+0;
	t41=pila[t40];
	t42=t41+0;
	t43=p+2;
	t44=pila[t43];
	mem[t42]=t44;
Lfin:t__0=0;
}
void Lista_imprimir(){
	t45=p+1;
	t46=p+0;
	t47=pila[t46];
	t48=t47+0;
	t49=mem[t48];
	pila[t45]=t49;
L1:	t50=p+1;
	t51=pila[t50];	
	if(t51!=-1)goto L2;
	goto L3;
L2:
	t52=p+2;
	pila[t52]=10;
	t53=p+1;
	t54=pila[t53];
	t55=t54+0;
	t56=mem[t55];
	t57=p+2;
	t58=pila[t57];
	t59=t56+t58;
	printf("%i",t59);
	printf("\n");
	t60=p+1;
	t61=p+1;
	t62=pila[t61];
	p=p+3;
	t63=p+0;
	pila[t63]=t62;
	Nodo_getEnlace();
	t64=p+1;
	t65=pila[t64];
	p=p-3;
	pila[t60]=t65;	
	goto L1;
	
L3:Lfin:t__0=0;
}
// INICIO - CODIGO DE LA PRACTICA
void Lista_deleteNodo_int(){
	t82=p+2;
	pila[t82]=-1;
	t83=p+3;
	t84=p+0;
	t85=pila[t84];
	t86=t85+0;
	t87=mem[t86];
	pila[t83]=t87;
	t88=p+4;
	pila[t88]=0;
L1:	t89=p+3; // while
	t90=pila[t89];
	if(t90!=-1) goto L2; // Lf (condicion 1 while)
		goto L3; // Lf (condicion 1 while)
L2:	t91=p+4;
	t92=pila[t92];
	if(t92==0) goto L4; // Lv (condicion 2 while)
		goto L5; // Lf (condicion 2 while)
L4:	t93=p+3;
	t94=pila[t93];
	t95=t94+0;
	t96=mem[t95]; // valor de actual.id
	t97=p+1;
	t98=pila[97];
	if(t96==t98) goto L6; // Lv (if)
		goto L7; // Lf (if)
L6:	t99=p+4;
	pila[99]=1;
	t100=p+2; // anterior
	t101=pila[t100];
	if(t100=-1) goto L8; // Lv (if)
		goto L9; // Lf (if)
L8:	t102=p+0;
	t103=pila[t102];
	t104=t103+0;
	t105=p+3;
	t106=pila[t105];
	t107=t106+1;
	t108=mem[t107]; // valor de actual.enlace
	pila[t104]=t108;
	goto L10;
L9:	t109=p+2;
	t110=pila[t109];
	t111=t110+1;
	t112=p+3;
	t113=pila[t112];
	t114=t113+1;
	t115=mem[t114];
	pila[t111]=t115;
	goto L1;
L10:L7: t116=p+2;
	t117=p+3;
	t118=pila[t117];
	pila[116]=t118; // anterior = actual
	t119=p+3;
	t120=p+3;
	t121=pila[t120];
	t122=t121+1;
	t123=mem[t122];
	pila[t119]=t123;
	goto L1;
L3:L5: t__0=0;
}
// FIN - CODIGO DE LA PRACTICA
int main(){
	t66=p+0;
	t67=m;
	m=m+1;
	pila[t66]=t67;
	p=p+1;
	t68=p+0;
	pila[t68]=t67;
	Lista_init();
	p=p-1;
	t69=p+0;
	t70=pila[t69];
	p=p+1;
	t71=p+0;
	pila[t71]=t70;
	t72=p+1;
	pila[t72]=1;
	Lista_addNodo_int();
	p=p-1;
	t73=p+0;
	t74=pila[t73];
	p=p+1;
	t75=p+0;
	pila[t75]=t74;
	t76=p+1;
	pila[t76]=2;
	Lista_addNodo_int();
	p=p-1;
	t77=p+0;
	t78=pila[t77];
	p=p+1;
	t80=p+0;
	pila[t80]=t78;
	Lista_imprimir();
	p=p-1;
// INICIO - CODIGO DE LA PRACTICA
	t124=p+0;  
	t125=pila[t124];
	p=p+1;
	t126=p+0;
	pila[t126]=t125; //envio el this
	t127=p+1;
	pila[t127]=1;
	Lista_deleteNodo_int();
	p=p-1;
// ---------
	t128=p+0;
	t129=pila[t128];
	p=p+1;
	t130=p+0;
	pila[t130]=t129;
	Lista_imprimir();
	p=p-1;
// FIN - CODIGO DE LA PRACTICA
Lfin:t__0=0;
}
